import { defineStore } from 'pinia'

const appPiniaStore = defineStore('app', {
    state: () => ({
        isCollapse: false
    }),
    actions: {

    },
    persist: {
        enabled: true,
        strategies: [
            {
                key: 'app',
                storage: localStorage,
                path:[] //可以选择保存的字段  其余的不保存
            }
        ]
    }
})

export default appPiniaStore
